package com.service.excel;

import com.controller.user.response.UserResponse;
import com.core.excel.ReadExcelUtils;
import com.service.BaseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;
import java.util.HashMap;

/**
 * Created by dawn on 2017/11/21.
 */
@Service
public class ExcelService extends BaseService {

    @Transactional
    public UserResponse importFile(MultipartFile multfile) {
        UserResponse response = new UserResponse();
        // 解析excel
        ReadExcelUtils readExcel = new ReadExcelUtils();
        System.out.println( System.currentTimeMillis());
        HashMap fileMap = readExcel.readExcel(multfile);
        System.out.println( System.currentTimeMillis());
        return response;
    }

}
